<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link href="./assets/images/favicon.ico" rel="icon">
    <title>七码题库 - 后台管理</title>
    <link rel="stylesheet" href="/static/assets/libs/layui/css/layui.css" />
    <link rel="stylesheet" href="/static/assets/module/admin.css?v=312" />
</head>

<body class="layui-layout-body">
    <div class="layui-layout layui-layout-admin">
        <!-- 头部 -->
        <div class="layui-header">
            <div class="layui-logo">
                <img src="/static/img/logo.png" />
<!--                <cite>&nbsp;七码题库管理系统</cite>-->
            </div>
            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item" lay-unselect>
                    <a ew-event="flexible" title="侧边伸缩"><i class="layui-icon layui-icon-shrink-right"></i></a>
                </li>
                <li class="layui-nav-item" lay-unselect>
                    <a ew-event="refresh" title="刷新"><i class="layui-icon layui-icon-refresh-3"></i></a>
                </li>
                <li class="layui-nav-item" lay-unselect>
                    <a href="javascript:goHome()" title="刷新"><i class="layui-icon layui-icon-home"></i>网站前台</a>
                </li>
            </ul>
            <ul class="layui-nav layui-layout-right">
                <!-- <li class="layui-nav-item" lay-unselect>
                <a ew-event="message" title="消息">
                    <i class="layui-icon layui-icon-notice"></i>
                    <span class="layui-badge-dot"></span>
                </a>
            </li> -->
                <!-- <li class="layui-nav-item" lay-unselect>
                <a ew-event="note" title="便签"><i class="layui-icon layui-icon-note"></i></a>
            </li>
            <li class="layui-nav-item layui-hide-xs" lay-unselect>
                <a ew-event="fullScreen" title="全屏"><i class="layui-icon layui-icon-screen-full"></i></a>
            </li> -->
                <li class="layui-nav-item" lay-unselect>
                    <a>
                        <img src="/static/assets/images/head.png" class="layui-nav-img">
                        <cite>管理员</cite>
                    </a>
                    <dl class="layui-nav-child">
                        <!-- <dd lay-unselect>
                        <a ew-href="page/template/user-info.html">个人中心</a>
                    </dd>
                    <dd lay-unselect>
                        <a ew-event="psw">修改密码</a>
                    </dd>
                    <hr> -->
                        <dd lay-unselect>
                            <a ew-event="logout" data-url="{:url('admin/main/logout')}">退出后台</a>
                        </dd>
                    </dl>
                </li>
                <li class="layui-nav-item" lay-unselect>
                    <a href="#" title="主题"><i class="layui-icon layui-icon-more-vertical"></i></a>
                </li>
            </ul>
        </div>

        <!-- 侧边栏 -->
        <div class="layui-side">
            <div class="layui-side-scroll">
                <ul class="layui-nav layui-nav-tree" lay-filter="admin-side-nav" lay-shrink="all"
                    style="margin: 15px 0;">
                    <li class="layui-nav-item">
                        <a lay-href="{:url('admin/main/console')}"><i
                                class="layui-icon layui-icon-unlink"></i>&emsp;<cite>控制台</cite></a>
                    </li>
                    <li class="layui-nav-item">
                        <a><i class="layui-icon layui-icon-set"></i>&emsp;<cite>系统管理</cite></a>
                        <dl class="layui-nav-child">
                            <dd><a lay-href="{:url('admin/system/index')}">网站设置</a></dd>
                            <dd><a lay-href="{:url('admin/system/admin')}">管理员设置</a></dd>
                            <dd><a lay-href="{:url('admin/system/regsite')}">注册设置</a></dd>
                            <dd><a lay-href="{:url('admin/system/ad_index')}">广告设置</a></dd>
                            <!-- <dd><a href="{:url('admin/main/delRuntime')}" target="_blank">清理日志文件</a></dd> -->
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a><i class="layui-icon layui-icon-template"></i>&emsp;<cite>收费管理</cite></a>
                        <dl class="layui-nav-child">
                            <dd><a lay-href="{:url('admin/cost/main')}">积分设置</a></dd>
                            <dd><a lay-href="{:url('admin/cost/pay_ui')}">支付配置</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a><i class="layui-icon layui-icon-template"></i>&emsp;<cite>用户管理</cite></a>
                        <dl class="layui-nav-child">
                            <dd><a lay-href="{:url('admin/user/index')}">用户列表</a></dd>
                            <dd><a lay-href="{:url('admin/invite/index')}">充值记录</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a><i class="layui-icon layui-icon-app"></i>&emsp;<cite>题库管理</cite></a>
                        <dl class="layui-nav-child">
                            <dd><a lay-href="{:url('admin/question/sort')}">题库分类</a></dd>
                            <dd><a lay-href="{:url('admin/question/index')}">题库列表</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a href="javascript:Xcache()"><i
                                class="layui-icon layui-icon-refresh-3"></i>&emsp;<cite>刷新缓存</cite></a>
                    </li>

                    <!-- <li class="layui-nav-item">
                        <a><i class="layui-icon layui-icon-template-1"></i>&emsp;<cite>拓展信息</cite></a>
                        <dl class="layui-nav-child">
                            <dd><a lay-href="{:url('admin/main/Api')}">Api接口</a></dd>
                        </dl>
                    </li> -->

                    <!--                <li class="layui-nav-item">-->
                    <!--                    <a href="{:url('admin/main/chace_s')}"><i class="layui-icon layui-icon-set"></i>&emsp;<cite>清空缓存</cite></a>-->
                    <!--                </li>-->

                </ul>
            </div>
        </div>

        <!-- 主体部分 -->
        <div class="layui-body"></div>
        <!-- 底部 -->
        <div class="layui-footer">
            copyright © 2020 七码程序 all rights reserved. <span class="pull-right">技术：西西</span>
        </div>
    </div>

    <!-- js部分 -->
    <script type="text/javascript" src="/static/assets/libs/layui/layui.js"></script>
    <script type="text/javascript" src="/static/assets/js/common.js?v=312"></script>
    <script>
        layui.use(['index','admin','layer'], function () {
            var $ = layui.jquery;
            var index = layui.index;
            var admin = layui.admin;
            var layer = layui.layer;
            // 默认加载主页
            index.loadHome({
                menuPath: "{:url('admin/main/console')}",
                menuName: '<i class="layui-icon layui-icon-home"></i>'
            });


            window.Xcache = function () {
                admin.req("{:url('admin/main/Xcache')}", function(res){
                    layer.alert('刷新成功');
                });
            }

        });

        function goHome() {
            window.open('http://' + window.location.host, "_blank");
        }


    </script>
</body>

</html>